#pragma once
#include <string>
#include "ingest.pb.h"

// Returns number of rows written on success; returns -1 and writes error message to err on failure
long long write_points_sql(const kwdb::ingest::v1::WriteRequest& req, std::string* err);